package cn.edu.ujs.coor.repository.field;

import cn.edu.ujs.coor.model.Field;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FieldRepository extends JpaRepository<Field, String>, JpaSpecificationExecutor<Field> {

    /**
     * 根据项目编号查询项目字段
     * @param projectId
     * @return
     */
    List<Field> findByProjectIdOrderBySortAsc (String projectId);
}